The instrumentation.js|ts file is used to integrate observability tools into your application, allowing you to track the performance and behavior, and to debug issues in production. To use it, place the file in the root of your application or inside a src folder if using one.
- register (optional): The file exports a register function that is called once when a new Next.js server instance is initiated. register can be an async function.
 - onRequestError (optional): You can optionally export an onRequestError function to track server errors to any custom observability provider.
 - The function accepts three parameters: error, request, and context.